$(document).ready(function(){
	$('.show_dialog').click(function(){
		var e = $(this);
		var request_id = e.attr('request_id');
		var request_name = e.attr('request_name');
		var attr_dialog = e.attr('dialog');
		var dialog = $('.'+attr_dialog);
		var url = e.attr('ajax_url');
		$.ajax({
			type: 'post',
			url: url,
			data: 'id='+request_id+'&name='+request_name+'&refresh='+(new Date().getTime()),
			success:function(res)
			{	
				dialog.html(res);
				dialog.dialog();
			}		
		});
	});
});	